Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: check for linting errors without writing required changes #2357

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

zimeg
Copy link
Member

@zimeg zimeg commented Dec 5, 2024

Summary

This PR adds the lint:fix job to write changes needed for linting to pass. The npm run lint command is changed to just check for changes. That'll cause CI to fail if changes are needed!

This matches the changes discussed in: slack-samples/bolt-ts-starter-template#131

Preview

Before changes

https://github.com/slackapi/bolt-js/actions/runs/12171290321/job/33947916208#step:5:19

After changes

Found in the action logs of this PR!

Notes

Planning to follow up with the same changes to node-slack-sdk as needed 🙏

Requirements

@zimeg zimeg added tests M-T: Testing work only github_actions Pull requests that update GitHub Actions code labels Dec 5, 2024
@zimeg zimeg requested review from hello-ashleyintech and a team December 5, 2024 18:32
@zimeg zimeg self-assigned this Dec 5, 2024
@zimeg
Copy link
Member Author

zimeg commented Dec 5, 2024

📝 Here are the updated logs!

https://github.com/slackapi/bolt-js/actions/runs/12185892485/job/33993146159?pr=2357#step:5:19

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.59%. Comparing base (fa14b38) to head (58af8a7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2357   +/-   ##
=======================================
  Coverage   92.59%   92.59%           
=======================================
  Files          36       36           
  Lines        7472     7472           
  Branches      653      653           
=======================================
  Hits         6919     6919           
  Misses        545      545           
  Partials        8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@hello-ashleyintech hello-ashleyintech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing, this is very helpful! ❤️ I've been burned by the linter auto-changing stuff before )*:

@zimeg
Copy link
Member Author

zimeg commented Dec 5, 2024

@hello-ashleyintech how darned opionated linters can be. I'm hoping that'll be caught more often. Thanks for the review!

@zimeg zimeg merged commit c360ff0 into main Dec 5, 2024
18 checks passed
@zimeg zimeg deleted the zimeg-ci-lint branch December 5, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code tests M-T: Testing work only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants